<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>tham informatica</title>
</h:head>
<h:body>
	<h:form style="font-size: 12px">
		<ui:composition template="/templates/padrao.xhtml">
			<ui:define name="content">
				<h:form style="font-size: 15px">
					<p:menubar>
						<p:submenu label="Listagens" icon="ui-icon-search">
							<p:menuitem value="Sistemas Disponíveis" url="sistemas.jsf" />
							<p:menuitem value="Departamentos da Empresa"
								url="departamentos.jsf" />
						</p:submenu>
						<p:submenu label="Procedimentos" icon="ui-icon-search">
							<p:menuitem value="Iteragir com Chamado" url="iteracoes.jsf" />
						</p:submenu>
					</p:menubar>
				</h:form>
				<h:form style="font-size: 12px">
					<p:dataTable id="tbFichas" paginator="true" rows="10"
						paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
						rowsPerPageTemplate="5,10,15"
						value="#{fichasBean.allFichasAbertas}" var="f">
						<p:column>
							<f:facet name="header">
								<h:outputText value="Código" />
							</f:facet>
							<h:outputText value="#{f.numero}" />
						</p:column>
						<p:column>
							<f:facet name="header">
								<h:outputText value="Assunto" />
							</f:facet>
							<h:outputText value="#{f.assunto}" />
						</p:column>
						<p:column>
							<f:facet name="header">
								<h:outputText value="Usuário" />
							</f:facet>
							<h:outputText value="#{f.usuario.nome}" />
						</p:column>
					</p:dataTable>
				</h:form>
				<p:commandButton value="Retornar" action="/login.xhtml" />

			</ui:define>
		</ui:composition>
	</h:form>
</h:body>
</html>
